{% set clazz = "delivery" %}
{% set title = "确认发货" %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" type="text/css" href="{{ '/static/css/store.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section>
    <form action="/store/delivery" method="post" name="deliveryForm">
      <div class="solid-bg">
        <p class="text-xl text hspace vspace">发货类型</p>
        <div class="vspace hspace">
          <button name="delivery" type="button" class="button inline primary">自行配送</button>
          <button name="sendout" type="button" class="button inline primary light hspace" ui-mode="30px">快递发货</button>
        </div>
      </div>
      <div class="list delivery-block">
        <label class="item item-input">
          <span class="control">
            <input type="text" name="deliverName" placeholder="请输入配送员姓名">
          </span>
        </label>
        <label class="item item-input">
          <span class="control">
            <input type="text" name="deliverMobile" placeholder="请输入配送员手机号">
          </span>
        </label>
      </div>
      <div class="list sendout-block" style="display:none;">
        <label class="item item-input">
          <span class="control">
            <input type="text" name="logisticsCode" placeholder="请输入快递单号">
          </span>
        </label>
        <label class="item item-input">
          <span class="control">
            <!--
            <select name="logisticsName">
              <option>请选择快递公司</option>
              <option>顺丰</option>
              <option>韵达</option>
            </select>
            -->
            <input type="text" name="logisticsName" placeholder="请输入快递公司">
          </span>
          <!-- <i class="icon text-gray">&#xe61a;</i> -->
        </label>
      </div>
      <div class="hspace vspace" ui-mode="20px">
        <input type="hidden" name="deliverType" value="delivery">
        <input type="hidden" name="orderCode" value="{{orderCode}}">
        <input type="hidden" name="providerId" value="{{providerId}}">
        <button type="button" name="saveBtn" class="button primary">提交</button>
      </div>
    </form>
  </section>
  {% raw %}
  <script id="logisMsgTempl" type="text/swig-template">
  <p>请再次确认信息无误</p><p>{{v1}}</p><p>{{v2}}</p>
  </script>
{% endraw %}
{% endblock %}
{% block script %}
{% parent %}
<script src="{{ '/static/js/store.js'|version }}"></script>
{% endblock %}